package cn.life.business.material.entity.vo;

import cn.life.business.material.entity.po.MaterialAuditPo;
import cn.life.business.material.entity.po.MaterialDetailRecPo;
import cn.life.common.entity.model.Page;

import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Author 李佳明
 * @Date 2018-07-26 13:24
 */
public class MaterialRecVo extends Page {

    /**
     *  记录Id
     */
    private Long recordId;
    /**
     *  记录名称
     */
    private String recordName;
    /**
     *  班组名称
     */
    private String teamName;
    /**
     *  负责人名称
     */
    private String personLiableName;
    /**
     *  负责人电话
     */
    private String personLiablePhone;
    /**
     *  材料员名称
     */
    private String materialPersonName;
    /**
     *  材料员电话
     */
    private String materialPersonPhone;
    /**
     *  项目Id
     */
    private Long projectId;
    /**
     *  1.待技术监管审核，2.待库管人员确认，3.待采购，4.待管理人员审核，9.审核通过，0.审核不通过
     */
    private int auditState;
    /**
     * 材料单明细集合
     */
    private List<MaterialDetailRecPo> list;
    /**
     * 材料审核记录
     */
    private List<MaterialAuditPo> auditList;
    /**
     *  操作人Id
     */
    private Long oprUserId;
    /**
     *  操作人名称
     */
    private String oprUserName;
    /**
     *  操作时间
     */
    private Date oprDate;
    /**
     *  审核人员Id
     */
    private Long nextUserId;
    /**
     *  审核人员名称
     */
    private String nextUserName;
    /**
     * 审核状态(0.审核不通过，1.下一步，2.流程完毕)
     */
    private Integer state;
    /**
     *  0.非我审核，1.待我审核
     */
    private int isMyAudit;
    /**
     * json串
     */
    private String json;
    /**
     * all:全部，my：我发起的,myAudit:待我审核的
     */
    private String statusStr;

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public String getRecordName() {
        return recordName;
    }

    public void setRecordName(String recordName) {
        this.recordName = recordName;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getPersonLiableName() {
        return personLiableName;
    }

    public void setPersonLiableName(String personLiableName) {
        this.personLiableName = personLiableName;
    }

    public String getPersonLiablePhone() {
        return personLiablePhone;
    }

    public void setPersonLiablePhone(String personLiablePhone) {
        this.personLiablePhone = personLiablePhone;
    }

    public String getMaterialPersonName() {
        return materialPersonName;
    }

    public void setMaterialPersonName(String materialPersonName) {
        this.materialPersonName = materialPersonName;
    }

    public String getMaterialPersonPhone() {
        return materialPersonPhone;
    }

    public void setMaterialPersonPhone(String materialPersonPhone) {
        this.materialPersonPhone = materialPersonPhone;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public int getAuditState() {
        return auditState;
    }

    public void setAuditState(int auditState) {
        this.auditState = auditState;
    }

    public List<MaterialDetailRecPo> getList() {
        return list;
    }

    public void setList(List<MaterialDetailRecPo> list) {
        this.list = list;
    }

    public Long getOprUserId() {
        return oprUserId;
    }

    public void setOprUserId(Long oprUserId) {
        this.oprUserId = oprUserId;
    }

    public String getOprUserName() {
        return oprUserName;
    }

    public void setOprUserName(String oprUserName) {
        this.oprUserName = oprUserName;
    }

    public Date getOprDate() {
        return oprDate;
    }

    public void setOprDate(Date oprDate) {
        this.oprDate = oprDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public int getIsMyAudit() {
        return isMyAudit;
    }

    public void setIsMyAudit(int isMyAudit) {
        this.isMyAudit = isMyAudit;
    }

    public Long getNextUserId() {
        return nextUserId;
    }

    public void setNextUserId(Long nextUserId) {
        this.nextUserId = nextUserId;
    }

    public String getNextUserName() {
        return nextUserName;
    }

    public void setNextUserName(String nextUserName) {
        this.nextUserName = nextUserName;
    }

    public List<MaterialAuditPo> getAuditList() {
        return auditList;
    }

    public void setAuditList(List<MaterialAuditPo> auditList) {
        this.auditList = auditList;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

    public String getStatusStr() {
        if(statusStr == null){
            statusStr = "";
        }
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }
}
